package com.rgs.module.login.filter;

import com.rgs.base.database.sql.ISqlFilter;
import com.rgs.base.database.sql.SqlFilterAnnotation;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import java.time.LocalDateTime;

/**
 * @author Ren Gaoshuai
 * @ClassName SysUserFilterDTO
 * @date 2021-12-24 10:26
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SysUserFilterDTO implements ISqlFilter {
    /**
     * 账号主键
     */
    @SqlFilterAnnotation(columnName = "id")
    private String id;
    /**
     * 登录账号
     */
    @SqlFilterAnnotation(columnName = "username")
    private String username;
    /**
     * 登录密码
     */
    @SqlFilterAnnotation(columnName = "password")
    private String password;

    /**
     * 真实姓名（选填）
     */
    @SqlFilterAnnotation(columnName = "realName")
    private String realName;
    /**
     * 手机号码（选填）
     */
    @SqlFilterAnnotation(columnName = "phoneNumber")
    private String phoneNumber;

    /**
     * 介绍
     */
    @SqlFilterAnnotation(columnName = "description")
    private String description;

    /**
     * 创建时间
     */
    @SqlFilterAnnotation(columnName = "createTime")
    private LocalDateTime createTime;

    /**
     * 最后修改时间
     */
    @SqlFilterAnnotation(columnName = "lastModifyTime")
    private LocalDateTime lastModifyTime;

    /**
     * 密码等级 高中低
     */
    @SqlFilterAnnotation(columnName = "passwordLevel")
    private String passwordLevel;

    private String orderByClause;
}
